package cn.wolfcode.ssm.domain;

import com.alibaba.fastjson.JSON;
import lombok.Getter;
import lombok.Setter;

import java.util.List;

@Getter
@Setter
public class Employee {
    private Long id;
    private String username;
    private String name;
    private String password;
    private String email;
    private Integer age;
    private boolean admin;
    private Department department;
    private Long deptId;
    private List<Role> roles;
    private boolean status = true;
    private List<Notice> notices;

    public String toJson(){
        return JSON.toJSONString(this);
    }


}